//
public class Zuoye4 {

	public static void main(String[] args) {
		Double a[] = new Double[] { 1.0, 3.0, 4.0, 5.0, 6.0, 8.0, 1.0, 4.0 };
		double sum = 1;
		for (int i = 0; i < a.length; i++) {
			sum = sum * a[i];
		}
		System.out.println(sum);

	}

}
